package router

import (
	"examination-management/api/cmd/config"
	"examination-management/api/handler/api"
	"github.com/gin-gonic/gin"
	jwt2 "github.com/golangblogs/gojwt"
)

func ExaminationModel(r *gin.RouterGroup) {
	examinationModel := r.Group("examination")
	{

		//todo: 试题
		examinationModel.POST("/createTestManagement", api.CreateTestManagement)
		examinationModel.POST("/updateTestManagement", api.UpdateTestManagement)
		//todo: 选项
		examinationModel.POST("/createTestOption", api.CreateTestOption)
		examinationModel.Use(jwt2.JWTAuth(config.JWT_SELECT_KEY))
		examinationModel.POST("/createTestModule", api.CreateTestModule)
		examinationModel.POST("/testModuleInfo", api.TestModuleInfo)
	}
}
